<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<svg>			
			<circle cx="150" cy="150" r="40" stroke="black" stroke-width="2" fill="red"/>			
		</svg>
	</body>
	<script type="text/javascript">
		/*const getWay = steps => {
			let counts = 0;
			if(steps==0){
				counts++;
				return;
			}
			for(let i=0;i<=3;i++){
				getWay(steps-i)
			}
			return counts;
		}
		let g = getWay(3);
		console.log(g)*/
		/*0 1 1 2 3 5 8*/
		function getVal(val,cache={}){			
			if(val in cache){
				return cache[val];
			}
			if(val < 2){
				return val;
			}
			cache[val] = getVal(val-1,cache) + getVal(val-2,cache)
			console.log(cache)
			return cache[val];
		}
		console.log(getVal(4))
	</script>
</html>
